package com.gxc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * MVC配置类.
 *
 * @author 宫新程
 * @since 2019/3/6 14:51
 */
@Configuration
public class WebMvcConfigBean implements WebMvcConfigurer {

  @Override
  public void addViewControllers(ViewControllerRegistry registry) {
    registry.addViewController("toUpload").setViewName("upload");
  }
}
